import request from '@/utils/request'

// api地址
const api = {
    lists:'bwc/merchantUnionList',
	signUp:'bwc/signUp',
	signUnionUp:'bwc/signUnionUp',
	orderList:'bwc/orderList',
	unionOrderList:'bwc/unionOrderList',
	cancelSign:'bwc/cancelSign',
	cancelUnionSign: 'bwc/cancelUnionSign',
	orderDetail:'bwc/orderDetail',
	getOrderNum:'bwc/getOrderNum',
	getShopDetail:'bwc/getShopDetail'
}


export function getMerchantList(data, option) {
  return request.post(api.lists, data, option)
}

export function signUp(data, option) {
  return request.post(api.signUp, data, option)
}

export function signUnionUp(data, option) {
  return request.post(api.signUnionUp, data, option)
}


export function cancelSign(data, option) {
  return request.post(api.cancelSign, data, option)
}

export function cancelUnionSign(data, option) {
  return request.post(api.cancelUnionSign, data, option)
}



export function getOrderList(data, option) {
  return request.get(api.orderList, data, option)
}

export function getUnionOrderList(data, option) {
  return request.get(api.unionOrderList, data, option)
}


export function orderDetail(data, option) {
  return request.get(api.orderDetail, data, option)
}

export function getOrderNum(data, option) {
  return request.get(api.getOrderNum, data, option)
}

export function getShopDetail(data, option) {
  return request.post(api.getShopDetail, data, option)
}





